﻿using System.Collections.Generic;

namespace VEGA.Algorithm.Elements
{
    class IndividualPowerComperer : IComparer<Individual>
    {
        public int Compare(Individual x, Individual y)
        {
            if (x.Power > y.Power)
                return 1;
            if (x.Power < y.Power)
                return -1;

            return 0;

        }
    }
}
